package com.jsh.auth.service;

import com.jsh.api.LoginApi;
import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.utils.BaseResponseInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private LoginApi loginApi;

    public BaseResponseInfo login(User user) {
        return loginApi.login(user);
    }

    public BaseResponseInfo logout() {
        return loginApi.logout();
    }
}
